<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>


<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="robots" content="follow, index" />
<meta name="author" content="iune co." />
<meta name="description"
	content="IUNE有最好的库存管理SaaS软件。以更快更高的准确度，跟进实时数据的访问和库存移动。" />
<meta name="keywords"
	content="库存, 存货管理, 库存管理, 仓库管理, 云ERP, 云逸ERP, 中小型企业云ERP, SaaS ERP软件/系统" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title></title>


<style type="text/css">
td {
	padding: 0px;
	width: 100px;
}
</style>

</head>
<body>


	<div class="container-fluid">

		<div class="row">
			<div class="col-sm-12 col-content">


				<h3>
					<button type="button" class="btn btn-default "
						data-ng-click="Model.goBack()">
						<span class="glyphicon glyphicon-arrow-left"></span> 返回
					</button>
					角色管理 <small>建立角色，关联权限，用于在组织机构中授权使用。</small>
				</h3>
				<hr>


			</div>
		</div>


		<div class="row">
			<div class="col-sm-12 col-content" style="padding-right:5px;">
				<nav class="nav">
					<ul class="pagination navbar-left buttonBar">
						<li>
							<div class="btn-group" role="toolbar">
								<button type="button" class="btn btn-info "
									data-ng-click="Model.add()">
									<span class="glyphicon glyphicon-plus"></span> 新建
								</button>
								<button type="button" class="btn btn-default"
									data-ng-disabled="dataRole.currentIndex==null"
									data-ng-click="Model.edit()">
									<span class="glyphicon glyphicon-edit"></span> 修改
								</button>
								<button type="button" class="btn btn-default"
									data-ng-disabled="dataRole.currentIndex==null"
									data-ng-click="Model.remove()" data-test="testvalue">
									<span class="glyphicon glyphicon-trash"></span> 删除
								</button>
							</div>
						</li>
					</ul>

					<query-like data="dataRole" place-holder="模糊查询..."></query-like>

				</nav>

				<div class="table-responsive">
					<table class="table table-hover table-condensed" style="margin:0px;">
						<thead>
							<tr>
								<th colspan="99"  style="padding:0px;">
								</th>
							</tr>

							<tr>
								<th>#</th>
								<th><input type="checkbox"
									data-ng-model="checkboxRoleValue"
									data-ng-click="Model.checkboxRoleClick($event)"></th>
								<th hidden="hidden">启用</th>
								<th>名称</th>
								<th>代码</th>
								<th>角色类型</th>
								<th>分类</th>
								<th>角色描述</th>
								<th>操作</th>
								<th></th>
							</tr>
						</thead>
						<tbody>
							<tr data-ng-show="row.userdata.recordState!='delete'"
								data-ng-class="{true:'active'}[dataRole.currentIndex==dataRole.rows.indexOf(row)]"
								data-ng-click="dataRole.onRowClick(row,$event);Model.grid1RowClick({'rowIndex':dataPerson.rows.indexOf(row),'rowID':row.fID.value})"
								data-ng-dblclick="dataRole.onRowDblclick(row,$event);Model.grid1RowDblClick({'rowIndex':dataPerson.rows.indexOf(row),'rowID':row.fID.value})"
								data-ng-repeat="row in dataRole.rows">
								<td style="width: 10px;">
									<span data-ng-if="dataRole.currentIndex==dataRole.rows.indexOf(row)"
									class="glyphicon glyphicon-hand-right" aria-hidden="true"></span>
									<span data-ng-if="dataRole.currentIndex!=dataRole.rows.indexOf(row)">{{dataRole.rows.indexOf(row)+1}}</span>
								</td>

								<td style="width: 50px;"><input type="checkbox"
									data-ng-model="row.userdata.checked"></td>
								<td style="width: 50px;" hidden="hidden"><span
									data-ng-show="row.sValidState.value==1"
									class="glyphicon glyphicon-ok" aria-hidden="true"></span></td>
								<td style="width: 200px;"><span
									data-ng-bind="row.sName.value"></span></td>
								<td style="width: 100px;"><span
									data-ng-bind="row.sCode.value"></span></td>
								<td style="width: 100px;"><span
									data-ng-bind="row.sRoleKind.value"></span></td>
								<td style="width: 100px;"><span
									data-ng-bind="row.sCatalog.value"></span></td>
								<td style="width: 400px;"><span
									data-ng-bind="row.sDescription.value"></span></td>
								<td style="width: 100px;">
								<a href="" ui-sref="/backcenter/permission/list({'roleName':row.sName.value,'roleID':row.sID.value})">权限配置</a>
								</td>

								<td style="width: 0px;"></td>
							</tr>

						</tbody>

							<tfoot>
								<tr>
									<th colspan="99"  style="padding:0px;">
									</th>
								</tr>
							</tfoot>

					</table>
				</div>
				<!-- 分页组件 -->
				<pag-ination data="dataRole" first-text="首页" previous-text="上一页" next-text="下一页" last-text="末页"></pag-ination>
			</div>
			

		</div>
	</div>



</body>

</html>

